10/20/26

** NEW Items **

Introduction

Contact Us

Member's Page

Achievement Program

Older Club News

*Make IT! Camps*

*Club Projects*

*Paul's Workshop*

Brian's Workshop

Cole's Workshop

Jack's Workshop

NMRA Car Frame

Prototype

Layouts

Meeting the Masters

Clinics on Line

Bon's Celebration

Fab Lab Three Lakes

3D Laser

3D Printing

Clubs and NMRA

NMRA

MIDWEST Region

WINNEBAGOLAND

Rhinelander Club

Northwoods M.R.Club

Boy Scouts

*Merit Badge*

*Nova Awards*

Other Hobby Links

At the Forge 2017

At the Forge 2018

Center for Rrailroad Art& Photography

Liberty Hobby Center

Fab Foundation

Contact Us

Home

Make It! Camp Report

A View from the Tower: Programming and Module Construction Update

 

In August, the Demmer Library and Three Lakes Model Railroad Club hosted a Make It! Camp at The Fab Lab Three Lakes. On the first day, participants used Adobe Illustrator and the Epilog Laser to create custom key fobs and also explored 3D printing.

As an introduction to Arduino and C++ programming, participants programmed an Arduino microcontroller to operate tri-color signals that replicate the Automatic Block Signals (ABS) seen by engineers from a train cab.

During the earlier camp we saw that the students were able to deal with the logic of the block signals on a single track in one direction, so we planned to give them a more difficult problem programming for bi-directional operation on the layout. After successfully evaluating their one-way block signal program on the club modules, the students tackled the more complex task of programming signals for bi-directional operation.

To support bi-directional operation, the Three Lakes Club needed a new modular layout with additional track, detection equipment, and signals. The club built several modules and equipped them with DCC wiring and NCE BD-20 detectors capable of detecting a train in any of seven blocks.

This operation required 10 tri-color signals—rather than 4—to be wired to the modules and connected to the Arduino, along with 7 detected blocks, an improvement over the 4-block systems used during the previous two years. The system had 7 inputs and 30 outputs to control the signals. Serial data was shifted through 7 shift registers, which latched the outputs for the common-anode signals.

The previous breadboard and signal setup—supporting 4 blocks and 12 outputs, including 4 extra LEDs for crossing signals—was used to test the new layout. Because the BD-20 uses an open-collector output to pull the signal wire to ground, the resistors were changed to positive pull-ups.

Previous test breadboard and signal setup for 4 blocks and 12 outputs

We developed a new programming and teaching approach that improves operational speed and efficiency by using block and turnout inputs to address signal outputs matching the layout configuration.

A simple spreadsheet analysis converts truth tables into signal-control logic. This example, used for instruction at Fab Lab Three Lakes, includes 4 detection blocks and 12 colored LED outputs.

*****************************************************************

Wiring with 7 inputs and 30 outputs sent in color coded wires to the signals

Each BD-20 detector used three connections: power, ground, and signal. On each module, the mainline DCC power wire passed through the orange transformer, which detected current flow in the block and reported it to the Arduino.

Occupancy and signal status were also displayed on a computer screen. Through considerable effort, the Three Lakes Model Railroad Club prepared the layout for Maker Camp and demonstrated that the project was achievable. Members also showcased a variety of Fab Lab models created for their railroad layouts.

The students’ first Arduino project addressed a real-world engineering challenge: keeping trains safely separated on a single track. They created a truth table that assigned signal colors based on track occupancy, then translated that logic into code controlling the signals. The program was loaded onto the model railroad’s Arduino, which received 4 block inputs and controlled 12 signal outputs.

Students received a basic Arduino program template in a desktop editor. After one signal example, the supporting text and then the syntax were removed, requiring them to translate the truth table into signal-control code independently. When ready, they brought their programs to the layout on a flash drive for testing. If a program failed, they followed the engineering process to review their work, identify the problem, and correct it.

After mastering one-way operation, students tackled the next challenge: using bidirectional signals to prevent trains traveling in opposite directions from colliding on the modular layout’s single-track sections.

*****************************************************************

Here we see photos of the town with a green signal for a train to enter from the East. Looking carefully, you may see the yellow signal down the track indicating two blocks down the line is occupied.

As the eastbound train entered town from the west, the signal turned red to prevent another train from entering from the east. At the opposite end of town, the yellow signal indicated an outbound train traveling in the other direction two blocks ahead.

The westbound SOO Line train waits for a clear signal before proceeding into town.

NBC 12 News featured this scene in motion with sound, along with additional footage of the trains and signals, as students and Demmer Library Director Erica Brewster described the Make It! Camp activities.

Director Brewster’s playful hope of seeing two trains collide went unrealized because the students’ signal programs kept the trains operating safely.

In previous years, we intentionally modified the code to disable block detection, creating a signal error and potential collision. Students then diagnosed the problem and corrected the code.

 

*****************************************************************

Construction in the North Woods

Bob is working on the installation of sub-roadbed and checking operations.

Jack is squaring the KREG joints for the new modules cut and fitted by Brian, Bob and Paul

**************************************************************

Testing of the new modules in an airconditioned workshop

The Layout room's shelving can store frameless modules up to 18' × 6'.

Once the modules were ready for installation, construction moved to the garage. The setup included three 4-foot sections on each side of the new 24-inch-radius end modules, which measure 6 feet by 30 inches, followed by testing in an air-conditioned workshop.

Foam is fitted into the wooden structure to support the track.

Careful adjustments will allow the Woodboro and Starks Models will be displayed on the 32" depth modules. The overall size 6' by 17'.

Bob checking out the modules assembled at the Fab Lab Three Lakes.

A BD20 is one of 7 wired for dection of the trains by detection of current flow.

Testing the modules in the garage with track detection on the main line.

Because the passing track was unfinished, three trains traveling in both directions passed through town.

 

***************************************************************

 

Check out other Three Lakes Model Railroad Club activities at the Fab Lab.

Fab Lab Laser Work

Fab Lab 3D Printing


Update 10/20/26